﻿using System;
using System.Text;
using System.Collections;

namespace Model
{
    //---------------------------------------------------------------------------------------------
    public enum DanhMucChung
    {
        NguonGoc,
        LoaiVanBan,
        DiaPhuong,
        VBGiayToSDD,
        TenDat,
        DuongPho
    }

    public enum DanhMucHeSo
    {
        HeSoCuLy,
        HeSoHaTangCoSo,
        HeSoViTriDacBiet,
        TyLeGiamGia,
        LoaiDienTich,
        HeSoTangNha,
        MaNha_KetCau
    }

    public enum KTTT
    {
        None,
        TyLeGiamGia,
        HeSoSXKD,
        HeSoCuLy,
        HeSoHTCS,
        HeSoViTri,
        ChenhLechVoiDatO
    }

    //---------------------------------------------------------------------------------------------
    public class SPParam
    {
        public string orderColumn = "";
        public string orderExpression = "";
        public string whereExpression = "";
        public string otherParam = null;
        public object objParam = null;

        public SPParam()
        {
        }

        public SPParam(string orderColumn, string orderExpression, string whereExpression)
        {
            this.orderColumn = orderColumn;
            this.orderExpression = orderExpression;
            this.whereExpression = whereExpression;
        }
    }

    //---------------------------------------------------------------------------------------------
    public delegate void OnCompletedEventHandler(object sender, OnCompletedEventArgs e);
    public class OnCompletedEventArgs : EventArgs
    {
        public object objectValue;

        public OnCompletedEventArgs(object objectValue)
        {
            this.objectValue = objectValue;
        }
    }
}